package com.vvlive.caibao.smartcity.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zhj on 2015/10/19.
 */
public class Dept implements Parcelable {

    private String deptid;
    private String deptname;

    public Dept() {
    }

    public Dept(String deptid, String deptname) {
        this.deptid = deptid;
        this.deptname = deptname;
    }

    protected Dept(Parcel in) {
        deptid = in.readString();
        deptname = in.readString();
    }

    public static final Creator<Dept> CREATOR = new Creator<Dept>() {
        @Override
        public Dept createFromParcel(Parcel in) {
            return new Dept(in);
        }

        @Override
        public Dept[] newArray(int size) {
            return new Dept[size];
        }
    };

    public String getDeptid() {
        return deptid;
    }

    public void setDeptid(String deptid) {
        this.deptid = deptid;
    }

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "deptid='" + deptid + '\'' +
                ", deptname='" + deptname + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(deptid);
        dest.writeString(deptname);
    }
}
